package com.tx.studentManager.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tx.studentManager.dao.StudentClassDao;
import com.tx.studentManager.model.StudentClass;
import com.tx.studentManager.qo.StudentClassQO;

@Transactional(rollbackFor = RuntimeException.class)
@Service
public class StudentClassService extends BaseService<StudentClass,String,StudentClassDao,StudentClassQO>{

	@Autowired
	private StudentClassDao studentClassDao;
	@Override
	protected StudentClassDao getDao() {
		return studentClassDao;
	}
	@Override
	public StudentClass insert(StudentClass model) {
		model.setCreateDate(new Date());
		return super.insert(model);
	}
	
	

}
